package timing.ukulele.portal.client;

import timing.ukulele.portal.client.callback.ItemClientCallback;
import timing.ukulele.common.ResponseResult;
import timing.ukulele.common.item.ItemData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "ukulele-item", path = "item", fallback = ItemClientCallback.class)
public interface ItemClient {
    @GetMapping("/api/item/getBySystemId/{systemId}")
    ResponseResult<List<ItemData>> getBySystemId(@PathVariable("systemId") Long systemId);
}
